package com.qf.service.impl;

import com.qf.dao.Daoregister;
import com.qf.dao.impl.DaoRegisterIpl;
import com.qf.domain.Student;
import com.qf.service.StudentRegisterService;

public class StudentRegisterServiceImpl implements StudentRegisterService {
    Daoregister daoregister=new DaoRegisterIpl();
    @Override
    public boolean register(Student stud) {
        int  i = daoregister.daoRegister(stud);
        return true;
    }

    @Override
    public boolean checkService(String count) {
        Student student = daoregister.findStudent(count);
        if (student!=null){
            return true;
        }else {
            return false;
        }

    }
}
